﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using BaccaratRally.DataKernel.Entity;
using BaccaratRally.DataKernel.Service;

namespace BaccaratRally.Service.Api
{
    public partial class SiteList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SiteService ss = ServiceFactory.CreateService<SiteService>();
            List<Site> sitelist = ss.GetSiteList();

            for (int i = 0; i < sitelist.Count; i++)
            {
                Response.Write(sitelist[i].SiteName +"$" + sitelist[i].SiteUrl);
                if (i < sitelist.Count - 1) Response.Write("|");
            }

            Response.End();
        }
    }
}